<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Client Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Class/Client" class="dashAnchor"></a>
    <a title="Client Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">Contentful Docs</a> (72% documented)</p>
        <p class="header-right"><a href="https://github.com/contentful/contentful.swift"><img src="../img/gh.png"/>View on GitHub</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">Contentful Reference</a>
        <img id="carat" src="../img/carat.png" />
        Client Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/Asset.html">Asset</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Asset/FileMetadata.html">– FileMetadata</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AssetQuery.html">AssetQuery</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Client.html">Client</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/s:C10Contentful12ContentModel">ContentModel</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ContentType.html">ContentType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ContentfulError.html">ContentfulError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/s:C10Contentful5Entry">Entry</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/FilterQuery.html">FilterQuery</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Locale.html">Locale</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/LocalizableResource.html">LocalizableResource</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes.html#/s:C10Contentful19LocalizationContext">LocalizationContext</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Query.html">Query</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/QueryOn.html">QueryOn</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/RateLimitError.html">RateLimitError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Resource.html">Resource</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Space.html">Space</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SyncSpace.html">SyncSpace</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SysISO8601DateTransform.html">SysISO8601DateTransform</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/Bounds.html">Bounds</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/FieldType.html">FieldType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/Fit.html">Fit</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/Focus.html">Focus</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/Format.html">Format</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/ImageOption.html">ImageOption</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/JPGQuality.html">JPGQuality</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/Link.html">Link</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/MimetypeGroup.html">MimetypeGroup</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/QueryError.html">QueryError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/QueryOperation.html">QueryOperation</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/SDKError.html">SDKError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/Date.html">Date</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Date/Formatter.html">– Formatter</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Dictionary.html">Dictionary</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Int.html">Int</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/String.html">String</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10Contentfuloi2eeFTCS_8ResourceS0__Sb">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/s:F10Contentfuloi2eeFTOS_11ImageOptionS0__Sb">==(_:_:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/AbstractQuery.html">AbstractQuery</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ChainableQuery.html">ChainableQuery</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ContentModellable.html">ContentModellable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/EntryModellable.html">EntryModellable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/Integration.html">Integration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/PersistenceIntegration.html">PersistenceIntegration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/QueryableRange.html">QueryableRange</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SpaceModellable.html">SpaceModellable</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structs</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/ArrayResponse.html">ArrayResponse</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/ClientConfiguration.html">ClientConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/Field.html">Field</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/LinkSys.html">LinkSys</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/MappedArrayResponse.html">MappedArrayResponse</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/MappedContent.html">MappedContent</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/OrderParameter.html">OrderParameter</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs.html#/s:V10Contentful14QueryParameter">QueryParameter</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/Sys.html">Sys</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Typealiases.html">Typealiases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:10Contentful14TaskObservable">TaskObservable</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>Client</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight"><code><span class="n">open</span> <span class="kd">class</span> <span class="kt">Client</span></code></pre>

                </div>
              </div>
            <p>Client object for performing requests against the Contentful API.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC10Contentful6Client22persistenceIntegrationGSqPS_22PersistenceIntegration__"></a>
                    <a name="//apple_ref/swift/Property/persistenceIntegration" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC10Contentful6Client22persistenceIntegrationGSqPS_22PersistenceIntegration__">persistenceIntegration</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The persistence integration which will receive delegate messages from the <code>Client</code> when new 
<code><a href="../Classes.html#/s:C10Contentful5Entry">Entry</a></code> and <code><a href="../Classes/Asset.html">Asset</a></code> objects are created from data being sent over the network. Currently, these
messages are only sent for <code>client.initialSync()</code> and <code>client.nextSync</code>. The relevant 
persistence integration lives at <a href="https://github.com/contentful/contentful-persistence.swift">https://github.com/contentful/contentful-persistence.swift</a>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">persistenceIntegration</span><span class="p">:</span> <span class="kt"><a href="../Protocols/PersistenceIntegration.html">PersistenceIntegration</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L43-L53">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6ClientcFT7spaceIdSS11accessTokenSS19clientConfigurationVS_19ClientConfiguration20sessionConfigurationCSo23URLSessionConfiguration22persistenceIntegrationGSqPS_22PersistenceIntegration__12contentModelGSqCS_12ContentModel__S0_"></a>
                    <a name="//apple_ref/swift/Method/init(spaceId:accessToken:clientConfiguration:sessionConfiguration:persistenceIntegration:contentModel:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6ClientcFT7spaceIdSS11accessTokenSS19clientConfigurationVS_19ClientConfiguration20sessionConfigurationCSo23URLSessionConfiguration22persistenceIntegrationGSqPS_22PersistenceIntegration__12contentModelGSqCS_12ContentModel__S0_">init(spaceId:accessToken:clientConfiguration:sessionConfiguration:persistenceIntegration:contentModel:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes a new Contentful client instance</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">spaceId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
                <span class="nv">accessToken</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
                <span class="nv">clientConfiguration</span><span class="p">:</span> <span class="kt"><a href="../Structs/ClientConfiguration.html">ClientConfiguration</a></span> <span class="o">=</span> <span class="o">.</span><span class="k">default</span><span class="p">,</span>
                <span class="nv">sessionConfiguration</span><span class="p">:</span> <span class="kt">URLSessionConfiguration</span> <span class="o">=</span> <span class="o">.</span><span class="k">default</span><span class="p">,</span>
                <span class="nv">persistenceIntegration</span><span class="p">:</span> <span class="kt"><a href="../Protocols/PersistenceIntegration.html">PersistenceIntegration</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                <span class="nv">contentModel</span><span class="p">:</span> <span class="kt"><a href="../Classes.html#/s:C10Contentful12ContentModel">ContentModel</a></span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>spaceId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The space you want to perform requests against.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>accessToken</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The access token used for authorization.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>clientConfiguration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Custom Configuration of the Client.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>sessionConfiguration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The configuration for the URLSession. Note that HTTP headers will be overwritten
                              interally by the SDK so that requests can be authorized correctly.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>persistenceIntegration</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An object conforming to the <code>PersistenceIntegration</code> protocol
                                which will receive messages about created/deleted Resources when calling <code>sync()</code> methods.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An initialized client instance.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L76-L94">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client10fetchSpaceERR"></a>
                    <a name="//apple_ref/swift/Method/fetchSpace(then:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client10fetchSpaceERR">fetchSpace(then:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch the space this client is constrained to.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchSpace</span><span class="p">(</span><span class="n">then</span> <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Space.html">Space</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, which enables cancellation of requests, or <code>nil</code> if the.
Space was already cached locally</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L284-L299">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client10fetchSpaceERR"></a>
                    <a name="//apple_ref/swift/Method/fetchSpace()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client10fetchSpaceERR">fetchSpace()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch the space this client is constrained to.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchSpace</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Space.html">Space</a></span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting Space.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L307-L310">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client12fetchEntriesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchEntries(with:then:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client12fetchEntriesERR">fetchEntries(with:then:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Entries from Contentful matching the specified query. This method does not
specify the content_type in the query parameters, so the entries returned in the results can be
of any type.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchEntries</span><span class="p">(</span><span class="n">with</span> <span class="nv">query</span><span class="p">:</span> <span class="kt"><a href="../Classes/Query.html">Query</a></span><span class="p">,</span>
                                                <span class="n">then</span> <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes.html#/s:C10Contentful5Entry">Entry</a></span><span class="o">&gt;&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The Query object to match results againts.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L327-L332">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client12fetchEntriesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchEntries(with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client12fetchEntriesERR">fetchEntries(with:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Entries from Contentful matching the specified query. This method does not
specify the content_type in the query parameters, so the entries returned in the results can be
of any type.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchEntries</span><span class="p">(</span><span class="n">with</span> <span class="nv">query</span><span class="p">:</span> <span class="kt"><a href="../Classes/Query.html">Query</a></span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes.html#/s:C10Contentful5Entry">Entry</a></span><span class="o">&gt;&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The Query object to match results againts.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and an observable for the resulting array of Entry&rsquo;s.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L342-L345">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client11fetchAssetsERR"></a>
                    <a name="//apple_ref/swift/Method/fetchAssets(with:then:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client11fetchAssetsERR">fetchAssets(with:then:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Assets from Contentful matching the specified query.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchAssets</span><span class="p">(</span><span class="n">with</span> <span class="nv">query</span><span class="p">:</span> <span class="kt"><a href="../Classes/AssetQuery.html">AssetQuery</a></span><span class="p">,</span>
                                               <span class="n">then</span> <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="o">&gt;&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The Query object to match results againts.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L355-L360">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client11fetchAssetsERR"></a>
                    <a name="//apple_ref/swift/Method/fetchAssets(query:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client11fetchAssetsERR">fetchAssets(query:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Assets from Contentful matching the specified query.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchAssets</span><span class="p">(</span><span class="nv">query</span><span class="p">:</span> <span class="kt"><a href="../Classes/AssetQuery.html">AssetQuery</a></span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="o">&gt;&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The Query object to match results againts.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and an observable for the resulting array of Assets.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L368-L371">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client18fetchMappedEntriesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchMappedEntries(with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client18fetchMappedEntriesERR">fetchMappedEntries(with:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Assets from Contentful matching the specified query.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchMappedEntries</span><span class="p">(</span><span class="n">with</span> <span class="nv">query</span><span class="p">:</span> <span class="kt"><a href="../Classes/Query.html">Query</a></span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Structs/MappedContent.html">MappedContent</a></span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The Query object to match results againts.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>An Observable forr the resulting <code><a href="../Structs/MappedContent.html">MappedContent</a></code> container.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L384-L387">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client18fetchMappedEntriesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchMappedEntries(with:then:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client18fetchMappedEntriesERR">fetchMappedEntries(with:then:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetches all entries and includes matching the passed in <code><a href="../Classes/Query.html">Query</a></code>. The completion handler returned will return a <code><a href="../Structs/MappedContent.html">MappedContent</a></code> object which
contains an array of <code><a href="../Classes/Asset.html">Asset</a></code>s and a dictionary of ContentTypeId&rsquo;s to arrays of <code><a href="../Protocols/EntryModellable.html">EntryModellable</a></code> types of your own defining.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchMappedEntries</span><span class="p">(</span><span class="n">with</span> <span class="nv">query</span><span class="p">:</span> <span class="kt"><a href="../Classes/Query.html">Query</a></span><span class="p">,</span>
                                                      <span class="n">then</span> <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/MappedContent.html">MappedContent</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The Query object to match results against.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request containing a <code>MappedContent</code> instance.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L398-L410">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client10fetchAssetERR"></a>
                    <a name="//apple_ref/swift/Method/fetchAsset(id:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client10fetchAssetERR">fetchAsset(id:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a single Asset from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchAsset</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The identifier of the Asset to be fetched.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L459-L461">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client10fetchAssetERR"></a>
                    <a name="//apple_ref/swift/Method/fetchAsset(id:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client10fetchAssetERR">fetchAsset(id:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a single Asset from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchAsset</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The identifier of the Asset to be fetched.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting Asset.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L470-L473">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client11fetchAssetsERR"></a>
                    <a name="//apple_ref/swift/Method/fetchAssets(matching:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client11fetchAssetsERR">fetchAssets(matching:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Assets from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchAssets</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:],</span>
                                               <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="o">&gt;&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional list of search parameters the Assets must match.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L483-L486">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client11fetchAssetsERR"></a>
                    <a name="//apple_ref/swift/Method/fetchAssets(matching:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client11fetchAssetsERR">fetchAssets(matching:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Assets from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchAssets</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:])</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="o">&gt;&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional list of search parameters the Assets must match.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting array of Assets.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L495-L498">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client9fetchDataERR"></a>
                    <a name="//apple_ref/swift/Method/fetchData(for:with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client9fetchDataERR">fetchData(for:with:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch the underlying media file as <code>Data</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchData</span><span class="p">(</span><span class="k">for</span> <span class="nv">asset</span><span class="p">:</span> <span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="p">,</span> <span class="n">with</span> <span class="nv">imageOptions</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Enums/ImageOption.html">ImageOption</a></span><span class="p">]</span> <span class="o">=</span> <span class="p">[])</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt">Data</span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>asset</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The <code>Asset</code> which contains the relevant media file.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>imageOptions</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional array of options for server side manipulations.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Tuple of the data task and a signal for the <code>Data</code> result.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L508-L516">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client16fetchContentTypeERR"></a>
                    <a name="//apple_ref/swift/Method/fetchContentType(id:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client16fetchContentTypeERR">fetchContentType(id:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a single Content Type from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchContentType</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
                                                    <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/ContentType.html">ContentType</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The identifier of the Content Type to be fetched.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L528-L531">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client16fetchContentTypeERR"></a>
                    <a name="//apple_ref/swift/Method/fetchContentType(id:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client16fetchContentTypeERR">fetchContentType(id:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a single Content Type from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchContentType</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Classes/ContentType.html">ContentType</a></span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The identifier of the Content Type to be fetched.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting Content Type.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L540-L543">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client17fetchContentTypesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchContentTypes(matching:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client17fetchContentTypesERR">fetchContentTypes(matching:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Content Types from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchContentTypes</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:],</span>
                                                     <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/ContentType.html">ContentType</a></span><span class="o">&gt;&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional list of search parameters the Content Types must match.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L553-L556">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client17fetchContentTypesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchContentTypes(matching:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client17fetchContentTypesERR">fetchContentTypes(matching:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Content Types from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchContentTypes</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:])</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/ContentType.html">ContentType</a></span><span class="o">&gt;&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional list of search parameters the Content Types must match.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting array of Content Types.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L565-L568">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client12fetchEntriesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchEntries(matching:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client12fetchEntriesERR">fetchEntries(matching:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Entries from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchEntries</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:],</span>
                                                <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes.html#/s:C10Contentful5Entry">Entry</a></span><span class="o">&gt;&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional list of search parameters the Entries must match.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L580-L583">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client12fetchEntriesERR"></a>
                    <a name="//apple_ref/swift/Method/fetchEntries(matching:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client12fetchEntriesERR">fetchEntries(matching:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a collection of Entries from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchEntries</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:])</span> <span class="o">-&gt;</span>  <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Structs/ArrayResponse.html">ArrayResponse</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes.html#/s:C10Contentful5Entry">Entry</a></span><span class="o">&gt;&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional list of search parameters the Entries must match.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting array of Entries.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L592-L595">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client10fetchEntryERR"></a>
                    <a name="//apple_ref/swift/Method/fetchEntry(id:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client10fetchEntryERR">fetchEntry(id:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a single Entry from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchEntry</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
                                              <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes.html#/s:C10Contentful5Entry">Entry</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The identifier of the Entry to be fetched.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L605-L619">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client10fetchEntryERR"></a>
                    <a name="//apple_ref/swift/Method/fetchEntry(id:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client10fetchEntryERR">fetchEntry(id:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch a single Entry from Contentful.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchEntry</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span>  <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Classes.html#/s:C10Contentful5Entry">Entry</a></span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The identifier of the Entry to be fetched.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting Entry.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L628-L631">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client11initialSyncERR"></a>
                    <a name="//apple_ref/swift/Method/initialSync(matching:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client11initialSyncERR">initialSync(matching:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Perform an initial synchronization of the Space this client is constrained to.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">initialSync</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:],</span>
                                               <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/SyncSpace.html">SyncSpace</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Additional options for the synchronization.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler being called on completion of the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L646-L658">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client11initialSyncERR"></a>
                    <a name="//apple_ref/swift/Method/initialSync(matching:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client11initialSyncERR">initialSync(matching:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Perform an initial synchronization of the Space this client is constrained to.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">initialSync</span><span class="p">(</span><span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:])</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt"><a href="../Classes/SyncSpace.html">SyncSpace</a></span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Additional options for the synchronization.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A tuple of data task and a signal for the resulting SyncSpace.</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L668-L671">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client8nextSyncERR"></a>
                    <a name="//apple_ref/swift/Method/nextSync(for:matching:completion:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client8nextSyncERR">nextSync(for:matching:completion:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Perform a subsequent synchronization operation, updating the passed in <code><a href="../Classes/SyncSpace.html">SyncSpace</a></code> with the
latest content from Contentful.</p>

<p>Calling this will mutate passed in SyncSpace and also return a reference to itself to the completion
handler in order to allow chaining of operations.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">@discardableResult</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">nextSync</span><span class="p">(</span><span class="k">for</span> <span class="nv">syncSpace</span><span class="p">:</span> <span class="kt"><a href="../Classes/SyncSpace.html">SyncSpace</a></span><span class="p">,</span>
                                            <span class="nv">matching</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">]</span> <span class="o">=</span> <span class="p">[:],</span>
                                            <span class="nv">completion</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../Typealiases.html#/s:10Contentful14ResultsHandler">ResultsHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Classes/SyncSpace.html">SyncSpace</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">URLSessionDataTask</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>syncSpace</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>the relevant <code>SyncSpace</code> to perform the subsequent sync on.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>matching</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Additional options for the synchronization</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>completion</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A handler which will be called on completion of the operation</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The data task being used, enables cancellation of requests</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/Client.swift#L709-L733">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC10Contentful6Client10fetchImageERR"></a>
                    <a name="//apple_ref/swift/Method/fetchImage(for:with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC10Contentful6Client10fetchImageERR">fetchImage(for:with:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Fetch the underlying media file as <code>UIImage</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">fetchImage</span><span class="p">(</span><span class="k">for</span> <span class="nv">asset</span><span class="p">:</span> <span class="kt"><a href="../Classes/Asset.html">Asset</a></span><span class="p">,</span> <span class="n">with</span> <span class="nv">imageOptions</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Enums/ImageOption.html">ImageOption</a></span><span class="p">]</span> <span class="o">=</span> <span class="p">[])</span> <span class="o">-&gt;</span> <span class="kt">Observable</span><span class="o">&lt;</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt">UIImage</span><span class="o">&gt;&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The signal for the <code>UIImage</code> result</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/contentful/contentful.swift/tree//Sources/UIKit/Client+UIKit.swift#L20-L31">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2017 <a class="link" href="https://www.contentful.com" target="_blank" rel="external">Contentful</a>. All rights reserved. (Last updated: 2017-07-31)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
